﻿// -----------------------------------------------------------------------
// <copyright file="PartInEquipment_BLL.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace PMSGSC.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using PMSGSC.DAL;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class PartInEquipment_BLL
    {
        public static List<PartsInEquipment> GetAll(int EquipmentID)
        {
            return PartInEquipment_DAL.GetAll(EquipmentID);
        }
        public static List<PartsInEquipment> GetAllByShip(int ShipID)
        {
            return PartInEquipment_DAL.GetAllByShip(ShipID);
        }
        public static PartsInEquipment GetDataByNumber(string number)
        {
            return PartInEquipment_DAL.GetDataByNumber(number);
        }
        public static PartsInEquipment GetDataByName(string name)
        {
            return PartInEquipment_DAL.GetDataByName(name);
        }
                   
        public static PartsInEquipment GetDataById(int id)
        {
            return PartInEquipment_DAL.GetDataById(id);
        }
        public static bool Insert(PartsInEquipment PartsInEquipment)
        {
            return PartInEquipment_DAL.Insert(PartsInEquipment);
        }
        public static bool Update(PartsInEquipment PartsInEquipment)
        {
            return PartInEquipment_DAL.Update(PartsInEquipment);
        }
        public static bool Delete(PartsInEquipment PartsInEquipment)
        {
            return PartInEquipment_DAL.Delete(PartsInEquipment);
        }
        public static List<PartsInEquipment> GetDataByEquipmentID(int id, bool isChangedA)
        {
            return PartInEquipment_DAL.GetDataByEquipmentID(id, isChangedA);
        }
        public static bool isExits(PartsInEquipment jp)
        {
            return PartInEquipment_DAL.isExits(jp);
        }
        public static bool DeleteByID(PartsInEquipment jp)
        {
            return PartInEquipment_DAL.DeleteByID(jp);
        }
        public static List<PartsInEquipment> FilterStockItem(PartsInEquipment part, int StockId, int ShipID)
        {
            return PartInEquipment_DAL.FilterStockItem(part, StockId, ShipID);
        }
        public static bool TestBeforeDelete(PartsInEquipment part)
        {
            return PartInEquipment_DAL.TestBeforeDelete(part);
        }
    }
}
